package com.sxt.demo.djiapplication.entity.flightdata.param;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * <p>
 * 飞行记录数据
 * </p>
 *
 * @author sxt
 * @since 2021-05-28
 */
public class FlightDataAddParam implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Float velocityX;

    private Float velocityY;

    private Float velocityZ;

    private Integer voltage;

    private Integer current;

    private Double latitude;

    private Double longitude;

    private Float altitude;

    private Float heading;

    private String recordTime;

    public FlightDataAddParam(Float velocityX, Float velocityY, Float velocityZ, Integer voltage, Integer current, Double latitude, Double longitude, Float altitude, Float heading) {
        this.velocityX = velocityX;
        this.velocityY = velocityY;
        this.velocityZ = velocityZ;
        this.voltage = voltage;
        this.current = current;
        this.latitude = latitude;
        this.longitude = longitude;
        this.altitude = altitude;
        this.heading = heading;
        this.recordTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.CHINA)
                .format(new Date(System.currentTimeMillis()));
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Float getVelocityX() {
        return velocityX;
    }

    public void setVelocityX(Float velocityX) {
        this.velocityX = velocityX;
    }

    public Float getVelocityY() {
        return velocityY;
    }

    public void setVelocityY(Float velocityY) {
        this.velocityY = velocityY;
    }

    public Float getVelocityZ() {
        return velocityZ;
    }

    public void setVelocityZ(Float velocityZ) {
        this.velocityZ = velocityZ;
    }

    public Integer getVoltage() {
        return voltage;
    }

    public void setVoltage(Integer voltage) {
        this.voltage = voltage;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Float getAltitude() {
        return altitude;
    }

    public void setAltitude(Float altitude) {
        this.altitude = altitude;
    }

    public Float getHeading() {
        return heading;
    }

    public void setHeading(Float heading) {
        this.heading = heading;
    }

    public String getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(String recordTime) {
        this.recordTime = recordTime;
    }
}
